﻿<div id="message-box-dialog" class="modal fade" role="dialog">
    <div class="modal-dialog  modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">
                    <i class="fas fa-exclamation-circle text-danger"></i>
                    <span class="ml-1"></span>
                </h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <p id="message-box-text"></p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

<div id="message-box-dialog-templates" style="display: none;">
    <div template="global-error">
        <div class="global-error">
            <p>
                The WRF domain wizard encountered an unexpected error. To help improve this tool, please, create an <a href="https://github.com/JiriRichter/WRFDomainWizard/issues" target="_blank">issue on GitHub</a> using the form below.
            </p>
            <form class="needs-validation" novalidate>
                <div class="form-group">
                    <h6>Error:</h6>
                    <textarea name="error-details" class="form-control" readonly></textarea>
                </div>
                <div class="form-group">
                    <h6>[Required] Repro Steps:</h6>
                    <textarea name="repro-steps" class="form-control" required placeholder="Steps to reproduce the issue" minlength="10"></textarea>
                    <div class="invalid-feedback">
                        Please provide steps to reproduce the issue.
                    </div>
                </div>
            </form>
            <a id="create-github-issue" class="btn btn-primary my-2" href="#" role="button" target="_blank">Create Issue</a>
        </div>
    </div>
</div>